<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>独立分页</title>
    <link rel="stylesheet" href="./css/layui.css">
</head>
<body>
    <div id="page"></div>
</body>
<script src="./layui.js"></script>
<script>
    layui.use(['laypage'],()=>{
        const laypage = layui.laypage
        laypage.render({
            elem:'page',
            count: 100,
            limit:10,
            limits:[10,20,30],
            group: 5, //超过5页省略号显示
            layout:['prev','page','next','limit','count','skip','refresh'],
            // theme:'#c00',
            // curr: 6,//设置默认起始页，未设置情况下，起始页为1
            // curr: location.hash.replace('#!page=', ''), //获取起始页
            hash: 'page',
        })
    })
</script>
</html>